package com.example.demo_spring.ioc_di.spring.depInterface;

//@Component
public class MyCustomer2 implements ICustomer{

    private String mName;

    public MyCustomer2(){
        System.out.println("Constructor: [spring_depInterface] MyCustomer2");
    }

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    public void displayInfo() {
        System.out.println("Hello[MyCustomer2]: "+ mName);
    }
}

